<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="/css/jpetstore.css" type="text/css" media="screen"/>
    <script type="text/javascript" src="/js/jquery-3.6.0.min.js"></script>

</head>
<body>
<div th:replace="common/Header :: header"></div>
<div id="Content">
    <form action="/account/login" method="post">
        <div id="Catalog">
            <div>
                <script src="/js/GOODMorning.js"></script>
            </div>
            <p>Please enter your username and password.</p>
            <tr>
                <td>
                    <label>Username: <input type="text" name="username" required="required">
                    </label>
                </td>
            </tr>
            <br>
            <tr>
                <td>
                    <label>Password: <input type="password" name="password" required="required">
                    </label>
                </td>
            </tr>
            <br>
            <tr>
                <td>
                    <p>Please enter the verification code.</p>
                </td>
                <td>
                    <label>
                        Code:<input type="text" name="code" required="required">
                    </label>
                </td>
                <td>
                    <img src="/account/code" height="30" width="100" onclick="this.src='code?'+Math.random();"
                         alt="verification code"/>
                </td>
            </tr>
            <br>
            <tr>
                <td colspan="2" align="center">Click the image to change the verification
                    code.<br></td>
            </tr>
            <br>
            <tr>
                <td colspan="2" align="center" th:text="${msg}"></td>
            </tr>
            <br>
            <input type="submit" value="login">
            <br> Need an account? <br>
            <a href="/account/registerForm">Register Now!</a>
            <br>
        </div>
    </form>
</div>
<div th:replace="common/Footer :: footer"></div>
</body>
</html>